<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>值类型和引用类型</title>
</head>
<body>

</body>
<script>


    /*1.值类型*/
 /*   var num1 = 10;     num1    10  12
    var num2= num1;      num2    10
    num1=13;

    alert(num2);*/

   /*2.址类型(引用类型)*/  // emp   address1    {age:20}   / {age:34}
                           // emp2  address1
    var emp={
        age:20
    }
    var emp2 = emp;
    emp.age=34;

    alert(emp2.age);
</script>
</html>